wayland: Clear tablet tool cursor on proximity out
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jul 2017 13:44:30 +0000 (15:44 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 26 Jul 2017 11:09:04 +0000 (13:09 +0200)
This ensures that the tablet tool will get the cursor updated even if it
happens to fall within the same window again on the next proximity in.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

gdk/wayland/gdkdevice-wayland.c

index 03282aec4d6da45b2c28bf03177626e76e85fe31..011fe30e2dfe1acd50d85bd33150ca3010e4944f 100644 (file)
@@ -3632,6 +3632,7 @@ tablet_tool_handle_proximity_out (void                      *data,
   tablet->pointer_info.focus = NULL;
 
   gdk_device_update_tool (tablet->current_device, NULL);
+  g_clear_object (&tablet->pointer_info.cursor);
 }
 
 static void